// 在创建路由实例时，自定义 link 高亮类名

import Find from "@/views/Find.vue";
import My from "@/views/My.vue";
import Friend from "@/views/Friend.vue";
import Vue from "vue";
import VueRouter from "vue-router"

Vue.use(VueRouter)

export const router = new VueRouter({
    routes: [
        {path: "/find", component: Find},
        {path: "/my", component: My},
        {path: "/friend", component: Friend}
    ],
    // link 自定义高亮类名
    linkActiveClass: "active",
    linkExactActiveClass: "exact-active"
})